/*
 * Copyright (c) zero. 2022-2023. All rights reserved.
 *
 */

package json.testBean;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @ClassName DeSerializeBean
 * @Description TODO
 * @Author lin
 * @DATE 2023/4/11 12:41 AM
 * @Version 1.0
 */
public class DeSerializeBean {
    public String name;
    public int age;
    @JsonCreator
    public DeSerializeBean(
            @JsonProperty("myName") String name,
            @JsonProperty("age") int age) {
        this.name = name;
        this.age = age;
    }
    @Override
    public String toString() {
        return "DeSerializeBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
